import request from '@/utils/request';

export function listCar(query) {
  return request({
    url: '/admin/platform/vehicle/list',
    method: 'get',
    params: query,
  });
}
 
//新增 /api/admin/platform/vehicle/save
export function saveCar(data) {
  return request({
    url: '/admin/platform/vehicle/save',
    method: 'post',
    data,
  });
}
//修改 /api/admin/platform/vehicle/update 
export function updateCar(data) {
  return request({
    url: '/admin/platform/vehicle/update',
    method: 'post',
    data,
  });
}
//删除 /api/admin/platform/vehicle/delete
export function deleteCar(id) {
  return request({
    url: `/admin/platform/vehicle/delete`,
    method: 'get',
    params: { id },
  });
}
//详情 /api/admin/platform/vehicle/info
export function getCarInfo(id) {
  return request({
    url: `/admin/platform/vehicle/info`,
    method: 'get',
    params: { id },
  });
}
